package io.renren.modules.generator.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.generator.entity.StudentsEntity;

import java.util.Map;

public interface StudentsService extends IService<StudentsEntity> {

    /**
     * 添加
     * @param studentsEntity
     */
    void addStudents(StudentsEntity studentsEntity);

    /**
     * 根据id学生修改信息
     * @param id
     * @param studentsEntity
     */
    void updateInfo(Integer id, StudentsEntity studentsEntity);

    /**
     * 根据id删除学生
     * @param id
     */
    void deleteStudentById(Integer id);

    /**
     * 查找学生列表
     * @param params
     * @return
     */
    PageUtils listStudent(Map<String, Object> params);
}
